package com.ricky02;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

@Component
public class InitTest implements InitializingBean {
    public void afterPropertiesSet() throws Exception {
        System.out.println("bean初始化完毕了");
    }
}
